home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19980901-19981211
/
000039_news@newsmaster….columbia.edu _Sat Sep 19 11:45:13 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id LAA06094
for <kermit.misc@watsun.cc.columbia.edu>; Sat, 19 Sep 1998 11:45:11 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA27307
for kermit.misc@watsun; Sat, 19 Sep 1998 11:45:11 -0400 (EDT)
Path: news.columbia.edu!panix!howland.erols.net!newshub.northeast.verio.net!newsserver.jvnc.net!post.servtech.com!hal9000.buf.servtech.com!spamguard!rchandra
From: rchandra.spamguard@spamguard.letter.com
Newsgroups: comp.protocols.kermit.misc
Subject: Re: set login userid \%1 not working
Date: 19 Sep 1998 15:34:05 GMT
Organization: Verio New York
Lines: 39
Message-ID: <6u0itd$742$1@post.servtech.com>
References: <35FF2D1E.D61C80CA@thermeon.com> <6tnfqs$im0$1@apakabar.cc.columbia.edu>
Reply-To: rchandra.spamguard@spamguard.letter.com
NNTP-Posting-Host: hal9000.buf.servtech.com
Originator: 0x804b6c0@0x804b560
Xref: news.columbia.edu comp.protocols.kermit.misc:9214
In article <6tnfqs$im0$1@apakabar.cc.columbia.edu>,
Jeffrey Altman <jaltman@watsun.cc.columbia.edu> wrote:
>I do not remember why command quoting is turned off for the
>SET LOGIN USER and SET TELNET ENVIRONMENT USER commands but
>it is and the result is that those commands will not evaluate
>variables.
>
>However, all is not lost. You can do what you want in a slightly
>roundabout manner.
>
> ASK \%1 {Username? }
> ASSIGN SET_LOGIN_USER SET LOGIN USER \%1
> DO SET_LOGIN_USER
> UNDEF SET_LOGIN_USER
>
>What this sequence does is create a macro called SET_LOGIN_USER
>whose definition is "SET LOGIN USER <name>" where <name> is
>the contents of \%1 as retrieved in the ASK command. The DO
>command is then used to execute the macro definition and UNDEF
>is used to undefine the macro.
>
> Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
> The Kermit Project * Columbia University
> 612 West 115th St #716 * New York, NY * 10025
> http://www.kermit-project.org/k95.html * kermit-support@kermit-project.org
Wow! This is quite handy. Nice hack. I also notice that "set host"
can't take variables. Basically, I wanted to use the "host" program
to look up my MX record and use it as an argument to set host so that
I can send an ETRN command (open !read ..., set host \%h 25). But
that didn't quite work :^(. So the most I have now is a warning in my
syslog that my mail exchanger host may have changed, and that I'd
better update my script. Now you've given me a good idea to "update"
it permanently! :^) :^) :^)
--
Oooooo-oooo-oooo-ooooo, Oooooo-oooo-oooo-ooooo, Ooooo-weem-oh-wum-ooo-ayyy
In the jungle, the silicon jungle, the process sleeps tonight.
Joe Philipps <rchandra-nospam@letter.com> http://www.servtech.com/~rchandra/
You know what you have to do to send email to me successfully :^)